<!DOCTYPE HTML>
<meta charset="UTF-8">
<div id="mCJp003" ng-controller="cP003">

	<div class="moduleHeader">
		<h4>Evim</h4>
	</div>
	<hr>

	<div class="panel panel-default">
		<table class="table">
			<tr class="active">
				<td class="DV_table_field">Oda Adı</td>
				<td class="DV_table_field">Hedef Sıcaklık</td>
				<td class="DV_table_field">Sıcaklık</td>
				<td class="DV_table_field">Nem</td>
				<td class="DV_table_field">Kullanım</td>
				<td class="DV_table_field">Zaman</td>
			</tr>
			<tbody ng:repeat="room in apartment.rooms">
				<tr ng-class="{'info': user == selectedUser}" ng-click="setUserSelected();">
					<td class="DV_table_field">{{room.name}}</td>
					<td class="DV_table_field">{{room.actualTemperatureSetpoint}}</td>
					<td class="DV_table_field">{{room.actualTemperature}}</td>
					<td class="DV_table_field">{{room.actualHumidity}}</td>
					<td class="DV_table_field">{{isOccup(room.actualOccupied)}}</td>
					<td class="DV_table_field">{{prettyDate(room.sensors[0].lastActiveTimeInMillis);}}</td>
				</tr>
			</tbody>
		</table>
	</div>
</div>